//============================================================================================
/**
 * @file	result_tag.h
 * @brief	結果タグ
 * @author	Nozomu Saito
 */
//============================================================================================
#ifndef __RESULT_TAG_H__
#define __RESULT_TAG_H__

#include "../../result_data.h"
#include "../../pokethlon.h"
#include "system/clact_tool.h"

/**
typedef struct MAKE_TAG_PRM_tag
{
	int X;
	int Y;
	RESULT_DATA ResultData;
}MAKE_TAG_PRM;
*/

typedef struct RTAG_CNT_tag * RTAG_CNT_PTR;
typedef struct RESULT_TAG_tag * RTAG_PTR;

extern RTAG_CNT_PTR RTAG_Init(const int inHeapID, GF_BGL_INI *bgl, PKTHLN_PTR pkthln_ptr);
extern void RTAG_End(RTAG_CNT_PTR cnt_ptr);
extern void RTAG_Draw(RTAG_CNT_PTR cnt_ptr);
extern void RTAG_Setup(RTAG_CNT_PTR cnt_ptr, const BOOL inIconValid);
extern RTAG_PTR RTAG_MakeTag(	RTAG_CNT_PTR cnt_ptr,
								const int inX, const int inY,
								const RESULT_DATA *inResult	);
extern void RTAG_ClearTag( RTAG_PTR tag_ptr );

extern void RTAG_GetTagPos(RTAG_PTR tag_ptr, int *outX, int *outY);
extern void RTAG_SetTagPos(RTAG_PTR tag_ptr, const int inX, const int inY);
extern void RTAG_MoveTag(RTAG_PTR tag_ptr, const int inX, const int inY);
extern u16 RTAG_GetRank(RTAG_PTR tag_ptr);
extern int RTAG_GetTagNo(RTAG_PTR tag_ptr);

#endif 	//__RESULT_TAG_H__